{include file="include:header" /}
<body class="fixed-sidebar full-height-layout gray-bg" >
    <!-- 导航 -->
    <div class="row wrapper border-bottom white-bg page-heading orders-detail">
        <div class="col-sm-4">
            <h2>订单详情</h2>
            <ol class="breadcrumb">
                <li><a href="{:url('admin/Index/home')}">主页</a></li>
                <li><a href="#">订单与服务</a></li>
                <li><strong>订单详情</strong></li>
            </ol>
        </div>
        <div class="col-sm-8">
            <div class="title-action">
                <!-- 链接部分 -->
                <a href="{:url('admin/Order/order_list')}" class="btn btn-primary">订单列表</a>
            </div>
        </div>
    </div>
    <!-- 内容 -->
    <div class="wrapper wrapper-content">
        <div class="panel panel-default">
            <div class="panel-heading">订单信息

            </div>
            
            <div class="panel-body">
                <table class="table table-bordered white-bg">
                    <tbody>
                    <tr>
                        <th colspan="4" style="color: red;">
                            {$data['o_type_id']|product_name}
                        </th>
                    </tr>
                    <tr>
                        <td width="100">用户昵称：</td>
                        <td><span class="btn btn-xs btn-primary">{$data['u_nickname']?$data['u_nickname']:$data['u_phone']}</span></td>
                        <td width="100">订单号：</td>
                        <td>{$data['o_no']}</td>
                    </tr>
                    <tr>
                        <td width="100">订单金额：</td>
                        <td class="text-danger">{$data['o_money']}元</td>
                        <td width="100">订单状态</td>
                        <td>
                            {if condition="$data['o_state'] eq 1"}<span class="btn btn-xs  btn-danger">待付款
                            {elseif condition="$data['o_state'] eq 2"/}<span class="btn btn-xs btn-success">已支付
                            {elseif condition="$data['o_state'] eq 3"/}<span class="btn btn-xs btn-primary">已服务
                            {else/}<span class="btn btn-xs btn-link">已取消
                            {/if}
                        </td>
                    </tr>
                    <tr>
                        <td width="100">下单时间：</td>
                        <td>{$data['o_addtime']}</td>
                        <td width="100">支付时间：</td>
                        <td>
                            {neq name="$data['o_paytime']" value="0000-00-00 00:00:00"}<font color="blue">{$data['o_paytime']}</font>{/neq}
                        </td>
                    </tr>
                    <tr>
                        <td width="100">
                            操作时间：</td>
                        <td>
                            {neq name="$data['o_handletime']" value="0000-00-00 00:00:00"}{$data['o_handletime']}{/neq}
                        </td>
                        <td width="100">支付方式</td>
                        <td>{if condition="$data['o_pay_type'] eq 'wx_pub_qr'"}微信扫码支付{elseif condition="$data['o_pay_type'] eq 'alipay_pc_direct'" /}支付宝PC支付{/if}</td>

                    </tr>
                    <tr>
                        <td width="100">ping++支付订单id：</td>
                        <td>{$data['o_third_id']}</td>
                        <td width="100">第三方支付订单编码：</td>
                        <td>
                            {$data['o_ping_no']}
                        </td>
                    </tr>
                    <tr>
                        <td width="100" >订单备注：</td>
                        <td colspan="2">{$data['o_comment']}</td>
                    </tr>

                </tbody></table>

                <!--操作-->
                <div class="form-group">
                    <div class="text-center">
                        {if condition="$data['o_state'] eq 2"}
                            <a href="javascript:;" class="btn btn-primary btn-outline orders-orderHandle" value="1" >确定并服务</a>
                        {elseif condition="$data['o_state'] eq 1"/}
                             <a href="javascript:;" class="btn btn-primary btn-outline orders-orderHandle" value="3">确认已转账</a>&nbsp;&nbsp;
                            <a href="javascript:;" class="btn btn-danger btn-outline orders-orderHandle" value="2">取消订单</a>
                        {elseif condition="$data['o_state'] eq 5"/}
                            <a href="javascript:;" class="btn btn-primary btn-outline orders-orderHandle" value="3">确认已转账</a>&nbsp;&nbsp;&nbsp;
                            <a href="javascript:;" class="btn btn-danger btn-outline orders-orderHandle" value="2">取消订单</a>
                        {/if}
                        <input type="hidden" name="order_id" value="{$data['order_id']}"/>
                    </div>
                </div>
            </div>
        </div>
</body>
</html>
{include file="include:js" /}
